﻿using System.ComponentModel.DataAnnotations;

namespace LuDragon.Data.Entities
{
    /// <summary>
    /// 系统导航
    /// </summary>   
    public class Sys_Navigation
    {
        /// <summary>
        /// 导航ID
        /// </summary>
        [Key]
        public int NavId { get; set; }
        /// <summary>
        /// 导航名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string NavName { get; set; }
        /// <summary>
        /// 导航地址
        /// </summary>
        [MaxLength(200)]
        public string Url { get; set; }
        /// <summary>
        /// 是否系统导航（系统导航不可删除，非系统导航可删除）
        /// </summary>
        public bool IsSystem { get; set; }
        /// <summary>
        /// 导航父级ID
        /// </summary>
        [Required]
        public int ParentId { get; set; }
        /// <summary>
        /// 排序 越小越前
        /// </summary>
        [Required]
        public int Sort { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 删除标识
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
